package com.yxinsur.imc.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;

import java.util.List;

/**
 * 监管报险种分类对象 imc_ins_catalog
 * 
 * @author imc
 * @date 2021-04-27
 */
public class InsCatalog extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 分类父级id */
    @Excel(name = "分类父级id")
    private Long parentId;

    /** 险种科目名称 */
    @Excel(name = "险种科目名称")
    private String catalogName;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    @TableField(exist = false)
    private List<InsCatalog> children;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setCatalogName(String catalogName) 
    {
        this.catalogName = catalogName;
    }

    public String getCatalogName() 
    {
        return catalogName;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public List<InsCatalog> getChildren() {
        return children;
    }

    public void setChildren(List<InsCatalog> children) {
        this.children = children;
    }
}
